﻿using Newtonsoft.Json;
using System.Collections.Generic;

namespace DingTalk.Sdk.Request
{
    public class FeedCardRequest : IRequest
    {
        [JsonProperty("msgtype")]
        public string Msgtype { get; set; }

        [JsonProperty("feedCard")]
        public FeedCardContent FeedCard { get; set; }
    }

    public class FeedCardContent
    {
        [JsonProperty("links")]
        public List<FeedLink> Links { get; set; }
    }

    public class FeedLink
    {
        [JsonProperty("title")]
        public string Title { get; set; }

        [JsonProperty("messageURL")]
        public string MessageUrl { get; set; }

        [JsonProperty("picURL")]
        public string PicUrl { get; set; }
    }
}
